package scan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import scan.pojo.Person;

@Configuration
public class BeanConfig {
    @Bean(name="person")
    public Person person()
    {
        Person person=new Person();
        person.setName("Stephanie");
        return person;
    }
}
